package cn.gcjxsc.config;

import cn.gcjxsc.config.data.PaymentResultConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author pumbaa
 * @since 1.0
 */
@Configuration
public class PaymentConfig {

    @Bean
    @RefreshScope
    @ConfigurationProperties(prefix = "rw.payment")
    public PaymentResultConfig paymentResultConfig() {
        return new PaymentResultConfig();
    }
}


